///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_award_logic.h
// Created: 2013-7-15
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "hy_includes.h"
#include "hy_award_data.h"

class hy_award_logic : public hy_object
{
public:
	hy_award_logic();
	virtual ~hy_award_logic();

	static hy_award_logic*		instance();
	static void					purge_instance();
public:
	hy_award_data*				get_server_award_data_by_id( int id );
	bool						add_server_award_data( hy_award_data* );


	hy_award_data*				get_temp_award_data_by_id( int id );
	bool						add_temp_award_data( hy_award_data* );
	void						add_temp_award_data_by_award_id( int temp_award_id, int award_id );
	void						add_temp_award_data_by_award_json( int temp_award_id, Json::Value* jv );
private:
	hy_award_data_map			m_server_award_data_map;
	hy_award_data_map			m_temp_award_data_map;
};